﻿<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
    <script>
        var recursion = function(num){
			if(num <= 1){
			return 1;
			}else{
			return num * recursion(num-1);
			}
		};
		var addsion = function(i){
			if(i <= 1){
			return 1;
			}else{
			return recursion(i)+addsion(i-1);
			}
		};
		var result = addsion(10);
		console.log("10!+9!+...+1!运算结果为："+result);
    </script>
</body>
</html>
